package com.zhiyi.app.service.impl;

import com.zhiyi.app.dao.AppCategoryMapper;
import com.zhiyi.app.entity.AppCategory;
import com.zhiyi.app.service.AppCategoryService;
import lombok.extern.log4j.Log4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Service
@Transactional
@Log4j
public class AppCategoryServiceImpl implements AppCategoryService {
    @Autowired
    AppCategoryMapper mapper;

    @Override
    public List<AppCategory> getByParentId(Integer id) {
        log.info("查询应用分类");
        return mapper.getByParentId(id);
    }
}
